package com.yipingnai.blog.mapper;

import com.yipingnai.blog.model.Tags;
import org.apache.ibatis.annotations.Param;

import javax.swing.text.html.HTML;
import java.util.List;

/**
 * @Author: jiangym
 * @Date: 2020/5/19 11:05
 */
public interface TagsMapper {

    List<Tags> getAllTags();

    Integer deleteArticleTid(Integer id);

    Integer deleteTag(Integer id);

    Integer addTag(Tags tag);

    Tags selectTagByName(String tagName);

    Integer addTags(@Param("tags") List<Tags> tags,@Param("aid") Long aid);
}
